package cn.wolfcode.designpattern.proxy;

/**
 * @author Leon
 * @date 2021/2/28
 */
public class UserServiceImpl implements IUserService {

    @Override
    public boolean login(String username, String password) {
        if (username == null || password == null) {
            return false;
        }

        return username.equals("root") && password.equals("admin");
    }
}
